import styled from 'styled-components';

export const HomeWrapper = styled.div `
	overflow: hidden;
	width: 960px;
	margin: 0 auto;
`;

export const HomeLeft = styled.div `
	float: left;
	margin-left: 15px;
	margin-top: 30px;
	width: 625px;
	.banner-img {
		width:625px;
		height:270px;
	}
`;

export const TopicWrapper = styled.div `
	overflow:hidden;
	padding: 20px 0 10px 0;
	margin-left: -18px;
	box-sizing: border-box;
	border-bottom: 1px solid #dcdcdc;
`;

export const TopicItem = styled.div `
	float: left;
	height: 32px;
	padding-right: 10px;
	margin-left: 18px;
	margin-bottom: 18px;
	line-height: 32px;
	font-size: 10px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	background: #f7f7f7;
	cursor: pointer;
	.topic-pic {
		display: block;
		float: left;
		width:26px;
		height: 26px;
		margin-right: 10px;
		margin-top: 3px;
		margin-left: 5px;
	}
`;


export const ListItem = styled.div `
	overflow: hidden;
	padding: 20px 0px;
	border-bottom: 1px solid #dcdcdc;
	.list-pic {
		display: block;
		width: 125px;
		height: 100px;
		float: right;
		boeder-radius: 10px;
	}
`;

export const ListInfo = styled.div `
	width: 500px;
	float: left;
	.title {
		line-height: 27px;
		font-size: 18px;
		font-weight: bold;
		color: #333;
		cursor: pointer;
	}
	.desc {
		line-height: 24px;
		font-size: 13px;
		color: #999;
	}
	.a-style {
		text-decoration:none;
	}
`;

export const HomeRight = styled.div `
	float: right;
	width: 280px;
`;

export const RecommendWrapper = styled.div `
	margin: 30px 0;
	width: 280px;
`;

export const RecommendItem = styled.div `
	width: 280px;
	height: 50px;
	margin: 0 0 6px;
	background: url(${(props) => props.imgUrl});
	background-size: contain;
	cursor: pointer;
`;

export const WriterWrapper = styled.div `
	width: 278px;
	overflow: hidden;
`;

export const WriterHeader = styled.div `
	width: 278px;
	height: 30px;
	border-bottom: 1px solid #dcdcdc;
`;

export const WriteTitle = styled.div `
	float:left;
	height: 30px;
	line-height: 30px;
	box-sizing: border-box;
	font-size:14px;
	text-align: center;
	color: #969696;
`;

export const WriteChange = styled.div `
	float:right;
	height: 30px;
	line-height: 30px;
  font-size: 14px;
  color: #969696;
  cursor: pointer;
  .spin {
  	font-size: 12px;
  	margin-right: 5px;
  }
`;

export const WriterList = styled.div `
	width: 278px;
	height: 60px;
	padding-top: 10px;

	.writer-img{
		display: block;
		float: left;
		width: 48px;
    height: 48px;
    margin-top: 6px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
	}

	.writerOpr {
		display: block;
		float: right;
		padding-top: 12px;
		font-size: 13px;
		color: #42c02e;
		cursor: pointer;
	}

	.writerName{
		padding-top: 12px;
		font-size: 14px;
		color: #333;
		cursor: pointer;
	}

	.writerDetail {
		margin-top: 8px;
		font-size: 12px;
		color: #969696;
	}

`;

export const WriterInfo = styled.div `
	float: left;
`;

export const LoadMore = styled.div `
	width: 100%;
	height: 40px;
	margin: 30px 0;
	line-height: 40px;
	background: #a5a5a5;
	text-align: center;
	border-radius: 20px;
	color: #fff;
	cursor: pointer;
`;


export const BackTop = styled.div `
	position: fixed;
	right: 100px;
	bottom: 100px;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	border: 1px solid #ccc;
	font-size: 12px;
	cursor: pointer;
`;